//
//  PublicHeader.h
//  ClassManager
//
//  Created by ihope99 on 2017/8/2.
//  Copyright © 2017年 GZX. All rights reserved.
//

#ifndef PublicHeader_h
#define PublicHeader_h

#import "BaseADViewController.h"
#import "UIImageView+WebCache.h"
//#import "YYText.h"
#import "Masonry.h"
#import "MJExtension.h"
#import <MThird/MThird.h>
#import "YYKit.h"
//#import "MThird.h"




//代理安全 消息转发
#define SafePerformSelector(Stuff) \
do { \
_Pragma("clang diagnostic push") \
_Pragma("clang diagnostic ignored \"-Warc-performSelector-leaks\"") \
Stuff; \
_Pragma("clang diagnostic pop") \
} while (0)
//屏幕宽高
//#define kScreenWidth    [UIScreen mainScreen].bounds.size.width
//#define kScreenHeight   [UIScreen mainScreen].bounds.size.height

//颜色
#define RGBACOLOR(r,g,b,a)  [UIColor colorWithRed:(r)/255.0f green:(g)/255.0f blue:(b)/255.0f alpha:(a)]

//防止block循环引用
#define WS(weakSelf)  __weak __typeof(&*self)weakSelf = self


//根据6的宽度按比例适配高
#define AUXFrom6(x) ([[UIScreen mainScreen] bounds].size.width / 375.0 * x)

//获取当前版本号
#


//
#define UIViewAutoresizingFlexibleFullFit   UIViewAutoresizingFlexibleWidth|UIViewAutoresizingFlexibleHeight
//APP主框架颜色
#define  KTinColor [UIColor colorWithRed:(254.)/255.0f green:(210.)/255.0f blue:(70.)/255.0f alpha:(1)]
//APP主文本颜色
#define  KBorColor [UIColor colorWithRed:(66.)/255.0f green:(66.)/255.0f blue:(66.)/255.0f alpha:(1)]
//APP副文本颜色
#define  KSubColor [UIColor colorWithRed:(120.)/255.0f green:(120.)/255.0f blue:(120.)/255.0f alpha:(1)]
//线的颜色
#define  KLineColor [UIColor colorWithRed:(161.)/255.0f green:(161.)/255.0f blue:(161.)/255.0f alpha:(1)]

//字体
#define KTEXTFONT(a) [UIFont systemFontOfSize:a];
//图片
#define KIMAGE(a) [UIImage imageNamed:a]


#define StatusBarH [[UIApplication sharedApplication] statusBarFrame].size.height
#define NavH 44
#define IPHONE_X [[UIScreen mainScreen] bounds].size.height == 812
#define StatusBarAndNavH ([[UIApplication sharedApplication] statusBarFrame].size.height + 44)
#define TABH ({float i; if(self.hidesBottomBarWhenPushed == YES) {i = 0;} else {i = 49;} if([[UIScreen mainScreen] bounds].size.height == 812) {i += 34;}  i;})
#define IOS_11 @available(iOS 11.0, *)

#define kScreenWidth    [UIScreen mainScreen].bounds.size.width
#define kScreenHeight   [UIScreen mainScreen].bounds.size.height

#ifdef DEBUG
#define DLog(...) NSLog(@"\n%s 第%d行  \n%@\n\n",__func__,__LINE__,[NSString stringWithFormat:__VA_ARGS__])
#else
#define DLog(...)
#endif


#endif /* PublicHeader_h */
